from flask import Flask
import sqlite3
import os

import init_db
from home import home_blueprint
from dashboard import dashboard_blueprint

# 创建Flask应用实例
app = Flask(__name__, static_folder='path/to/static')
app.secret_key = 'your_secret_key'  # 会话密钥 

# 注册蓝图
app.register_blueprint(home_blueprint)
app.register_blueprint(dashboard_blueprint)

if __name__ == '__main__':
    #初始化DB
    init_db.init_db()
    app.run(debug=True)